package main.java.design.mdediator;

/**
 * <p>
 *     定义同事类的接口，保存中介者对象，提供同事对象交互的抽象方法，实现所有相互影响的同事类的公共功能
 * </p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/22 21:57
 */
public abstract class Colleague {

    // 中介者
    protected Mediator mediator;

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    public abstract void  send();

    public abstract void receive();
}
